package cn.heygod.nacostool.bean;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * {
 *   "code": 0,
 *   "msg": "",
 *   "count": 1000,
 *   "data": [{}, {}]
 * }
 * @Author Simon
 */
@Data
public class PageData implements Serializable {

    private int code = 0;

    private String msg;

    private int count;

    private List data;

    public PageData(List data){
        count = data.size();
        this.data = data;
    }
}
